package cn.htu.edu.mapper;

import cn.htu.edu.common.ResponseModel;
import cn.htu.edu.entity.Person;
import cn.htu.edu.entity.Users;
import cn.htu.edu.payload.request.orders.OrdersPerson;
import cn.htu.edu.payload.request.person.Personz;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author dakai
 * @since 2024-05-10
 */
public interface PersonMapper extends BaseMapper<Person> {

    /**
     * 修改
     * @param request
     * @return
     */
    ResponseModel updateOrdersPerson(OrdersPerson request);

    /**
     * 修改
     * @param request
     * @return
     */
    ResponseModel updatesPerson(Personz request);

    /**
     * 批量删除
     * @param ids
     */
    void delete(List<String> ids);

    /**
     * 删除
     * @param id
     */
    void deletePerson(String id);

    /**
     * 分页带查询条件
     * @param page
     * @return
     */
    IPage<Person> importExcel(@Param("page") IPage page);
}
